package com.guaika.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guaika.reggie.common.ResultMessage;
import com.guaika.reggie.entity.Category;

import java.util.List;


/**
 * @author GuaiKa
 */
public interface CategoryService extends IService<Category> {
    /**
     * 重写删除方法
     * @param id
     * @return
     */
    void remove(Long id);

    /***
     * 获取信息并分页
     * @param page
     * @param pageSize
     * @return
     */
    ResultMessage<Page> categoryQuery(int page, int pageSize);

    /***
     * 获取分类
     * @param category
     * @return
     */
    ResultMessage<List<Category>> listCategory(Category category);
}
